﻿#pragma once

#include "../MonsterObject.h"
#include "../../MirDatabase/MonsterInfo.h"
#include "../../../Shared/Enums.h"
#include "../PlayerObject.h"
#include <vector>
#include <any>

using namespace Server::MirDatabase;
namespace S = ServerPackets;

namespace Server::MirObjects::Monsters
{
    class GuardianRock : public MonsterObject
    {
    public:
        bool Active = true;
    protected:
        bool getCanMove() const override;

        GuardianRock(MonsterInfo *info);

    public:
        void Turn(MirDirection dir) override;

        bool Walk(MirDirection dir) override;

    protected:
        void ProcessRoam() override;

        bool InAttackRange() override;
        void CompleteAttack(std::vector<std::any> &data) override;

    private:
        void PullAttack();

    protected:
        void ProcessTarget() override;

    public:
        int Attacked(MonsterObject *attacker, int damage, DefenceType type = DefenceType::ACAgility) override;

        int Attacked(PlayerObject *attacker, int damage, DefenceType type = DefenceType::ACAgility, bool damageWeapon = true) override;

        int Struck(int damage, DefenceType type = DefenceType::ACAgility) override;

        void ChangeHP(int amount) override;
    };
}
